const util = require('../../utils/util.js');
const api = require('../../config/api.js');
Page({
  data: {
    money: '',
    payeeMobile: "",
    payeeName: "",
    payerMobile: "",
    payerName: "",
    typeDesc:'',
    typeNote:"",
    moneyWords:'',
    moneyStr:''
  },
  onShareAppMessage() {
    return {};
  },
  onLoad(options){
    const that = this;
    that.id = options.id
    util.request(api.FeeDetail, { id: options.id }, 'get').then(function (res) {
      if (res.errno === 200) {
        const info = res.data;
        that.setData({
          money:info.money,
          payeeMobile:info.payeeMobile,
          payeeName:info.payeeName,
          payerMobile:info.payerMobile,
          payerName:info.payerName,
          typeDesc:info.typeDesc,
          typeNote:info.typeNote,
          moneyWords:info.moneyWords,
          moneyStr:info.moneyStr
        });
      }
    });
  },
});